package com.mac.hosp_pre.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyResult;
import com.mac.hosp_pre.order.entity.RefundInfo;
import com.mac.hosp_pre.order.model.req.PaymentReqDto;
import com.mac.hosp_pre.order.model.resp.PaymentRespDto;
import com.mac.hosp_pre.order.model.resp.RefundRespDto;

public interface RefundInfoService extends IService<RefundInfo> {

    /**
     * 保存退款记录
     * @param paymentInfo
     */
    RefundRespDto saveRefundInfo(PaymentRespDto paymentInfo);

    void refundSuccess(Long id, WxPayRefundNotifyResult.ReqInfo reqInfo);
}
